package org.vnl.platform.impl.openjpa.std;

public class EntityTransactionManagerFactory {

    private static EntityTransactionManagerFactory instance;
    
    private IEntityTransactionManager etm;
    
    private EntityTransactionManagerFactory() {
        
    }
    
    public static EntityTransactionManagerFactory getInstance() {
        if (instance == null) {
            instance = new EntityTransactionManagerFactory();
        }
        return instance;
    }
    
    public void setEntityTransactionManager(IEntityTransactionManager etm) {
        this.etm = etm;
    }
    
    public IEntityTransactionManager getEntityTransactionManager() {
        return this.etm;
    }
    
}
